package o;

import android.content.res.Resources.Theme;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.annotation.FloatRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.resource.bitmap.Downsampler;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import java.util.Map;

public abstract class ze<T extends ze<T>> implements Cloneable {
    private int ʻ = -1;
    private boolean ʻॱ;
    private int ʼ;
    private boolean ʼॱ;
    private boolean ʽ = true;
    private boolean ʽॱ;
    private boolean ʾ = true;
    @Nullable
    private Theme ʿ;
    private boolean ˈ;
    private float ˊ = 1.0f;
    private boolean ˊॱ = true;
    @NonNull
    private rl ˋ = rl.NORMAL;
    private boolean ˋˊ;
    private boolean ˋॱ;
    @Nullable
    private Drawable ˎ;
    @NonNull
    private tf ˏ = tf.ˊ;
    private int ˏॱ = -1;
    @Nullable
    private Drawable ͺ;
    private int ॱ;
    @NonNull
    private sa ॱˊ = aal.ˊ();
    @NonNull
    private Map<Class<?>, si<?>> ॱˋ = new aaj();
    @NonNull
    private sc ॱˎ = new sc();
    private int ॱॱ;
    @NonNull
    private Class<?> ॱᐝ = Object.class;
    @Nullable
    private Drawable ᐝ;
    private int ᐝॱ;

    @CheckResult
    public /* synthetic */ Object clone() throws CloneNotSupportedException {
        return ˎ();
    }

    private static boolean ॱ(int i, int i2) {
        return (i & i2) != 0;
    }

    @CheckResult
    @NonNull
    public T ˎ(@FloatRange(from = 0.0d, to = 1.0d) float f) {
        if (this.ʼॱ) {
            return ˎ().ˎ(f);
        }
        if (f < 0.0f || f > 1.0f) {
            throw new IllegalArgumentException("sizeMultiplier must be between 0 and 1");
        }
        this.ˊ = f;
        this.ॱ |= 2;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˊ(boolean z) {
        if (this.ʼॱ) {
            return ˎ().ˊ(z);
        }
        this.ˋˊ = z;
        this.ॱ |= 1048576;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˊ(@NonNull tf tfVar) {
        if (this.ʼॱ) {
            return ˎ().ˊ(tfVar);
        }
        this.ˏ = (tf) aas.ˎ(tfVar);
        this.ॱ |= 4;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ॱ(@NonNull rl rlVar) {
        if (this.ʼॱ) {
            return ˎ().ॱ(rlVar);
        }
        this.ˋ = (rl) aas.ˎ(rlVar);
        this.ॱ |= 8;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˎ(@Nullable Drawable drawable) {
        if (this.ʼॱ) {
            return ˎ().ˎ(drawable);
        }
        this.ᐝ = drawable;
        this.ॱ |= 64;
        this.ʼ = 0;
        this.ॱ &= -129;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˎ(@DrawableRes int i) {
        if (this.ʼॱ) {
            return ˎ().ˎ(i);
        }
        this.ʼ = i;
        this.ॱ |= DnsConfig.MAX_CACHE_ENTRIES;
        this.ᐝ = null;
        this.ॱ &= -65;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˋ(@DrawableRes int i) {
        if (this.ʼॱ) {
            return ˎ().ˋ(i);
        }
        this.ᐝॱ = i;
        this.ॱ |= 16384;
        this.ͺ = null;
        this.ॱ &= -8193;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˏ(@DrawableRes int i) {
        if (this.ʼॱ) {
            return ˎ().ˏ(i);
        }
        this.ॱॱ = i;
        this.ॱ |= 32;
        this.ˎ = null;
        this.ॱ &= -17;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ॱ(boolean z) {
        boolean z2 = true;
        if (this.ʼॱ) {
            return ˎ().ॱ(true);
        }
        if (z) {
            z2 = false;
        }
        this.ʽ = z2;
        this.ॱ |= 256;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˊ(int i, int i2) {
        if (this.ʼॱ) {
            return ˎ().ˊ(i, i2);
        }
        this.ˏॱ = i;
        this.ʻ = i2;
        this.ॱ |= WXMediaMessage.TITLE_LENGTH_LIMIT;
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ॱ(@NonNull sa saVar) {
        if (this.ʼॱ) {
            return ˎ().ॱ(saVar);
        }
        this.ॱˊ = (sa) aas.ˎ(saVar);
        this.ॱ |= WXMediaMessage.DESCRIPTION_LENGTH_LIMIT;
        return ˊ();
    }

    @CheckResult
    public T ˎ() {
        try {
            ze zeVar = (ze) super.clone();
            zeVar.ॱˎ = new sc();
            zeVar.ॱˎ.ˋ(this.ॱˎ);
            zeVar.ॱˋ = new aaj();
            zeVar.ॱˋ.putAll(this.ॱˋ);
            zeVar.ʻॱ = false;
            zeVar.ʼॱ = false;
            return zeVar;
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
    }

    @CheckResult
    @NonNull
    public <Y> T ˏ(@NonNull sb<Y> sbVar, @NonNull Y y) {
        if (this.ʼॱ) {
            return ˎ().ˏ((sb) sbVar, (Object) y);
        }
        aas.ˎ(sbVar);
        aas.ˎ(y);
        this.ॱˎ.ˎ(sbVar, y);
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˏ(@NonNull Class<?> cls) {
        if (this.ʼॱ) {
            return ˎ().ˏ((Class) cls);
        }
        this.ॱᐝ = (Class) aas.ˎ(cls);
        this.ॱ |= 4096;
        return ˊ();
    }

    public final boolean ˋ() {
        return this.ˊॱ;
    }

    public final boolean ॱ() {
        return ˊ(2048);
    }

    @CheckResult
    @NonNull
    public T ˎ(@NonNull DecodeFormat decodeFormat) {
        aas.ˎ(decodeFormat);
        return ˏ(Downsampler.DECODE_FORMAT, (Object) decodeFormat).ˏ(xx.ˎ, (Object) decodeFormat);
    }

    @CheckResult
    @NonNull
    public T ॱॱ() {
        return ˏ(Downsampler.ALLOW_HARDWARE_CONFIG, Boolean.valueOf(false));
    }

    @CheckResult
    @NonNull
    public T ॱ(@NonNull wu wuVar) {
        return ˏ(wu.ʼ, aas.ˎ(wuVar));
    }

    @CheckResult
    @NonNull
    public T ᐝ() {
        return ˊ(wu.ˏ, new wo());
    }

    @CheckResult
    @NonNull
    public T ʻ() {
        return ॱ(wu.ˏ, new wo());
    }

    @CheckResult
    @NonNull
    public T ʼ() {
        return ˎ(wu.ˋ, new wr());
    }

    @CheckResult
    @NonNull
    public T ʽ() {
        return ˋ(wu.ˋ, new wr());
    }

    @CheckResult
    @NonNull
    public T ॱˊ() {
        return ˎ(wu.ˊ, new wn());
    }

    @CheckResult
    @NonNull
    public T ͺ() {
        return ॱ(wu.ˊ, new wq());
    }

    @NonNull
    final T ˊ(@NonNull wu wuVar, @NonNull si<Bitmap> siVar) {
        if (this.ʼॱ) {
            return ˎ().ˊ(wuVar, (si) siVar);
        }
        ॱ(wuVar);
        return ˏ((si) siVar, false);
    }

    @CheckResult
    @NonNull
    final T ॱ(@NonNull wu wuVar, @NonNull si<Bitmap> siVar) {
        if (this.ʼॱ) {
            return ˎ().ॱ(wuVar, (si) siVar);
        }
        ॱ(wuVar);
        return ˏ((si) siVar);
    }

    @NonNull
    private T ˋ(@NonNull wu wuVar, @NonNull si<Bitmap> siVar) {
        return ˋ(wuVar, siVar, true);
    }

    @NonNull
    private T ˎ(@NonNull wu wuVar, @NonNull si<Bitmap> siVar) {
        return ˋ(wuVar, siVar, false);
    }

    @NonNull
    private T ˋ(@NonNull wu wuVar, @NonNull si<Bitmap> siVar, boolean z) {
        T ॱ;
        if (z) {
            ॱ = ॱ(wuVar, (si) siVar);
        } else {
            ॱ = ˊ(wuVar, (si) siVar);
        }
        ॱ.ʾ = true;
        return ॱ;
    }

    @CheckResult
    @NonNull
    public T ˏ(@NonNull si<Bitmap> siVar) {
        return ˏ((si) siVar, true);
    }

    @NonNull
    T ˏ(@NonNull si<Bitmap> siVar, boolean z) {
        if (this.ʼॱ) {
            return ˎ().ˏ((si) siVar, z);
        }
        Object wvVar = new wv(siVar, z);
        ॱ(Bitmap.class, siVar, z);
        ॱ(Drawable.class, wvVar, z);
        ॱ(BitmapDrawable.class, wvVar.ˋ(), z);
        ॱ(xt.class, new xq(siVar), z);
        return ˊ();
    }

    @NonNull
    <Y> T ॱ(@NonNull Class<Y> cls, @NonNull si<Y> siVar, boolean z) {
        if (this.ʼॱ) {
            return ˎ().ॱ(cls, siVar, z);
        }
        aas.ˎ(cls);
        aas.ˎ(siVar);
        this.ॱˋ.put(cls, siVar);
        this.ॱ |= 2048;
        this.ˊॱ = true;
        this.ॱ |= WXMediaMessage.THUMB_LENGTH_LIMIT;
        this.ʾ = false;
        if (z) {
            this.ॱ |= WXMediaMessage.MINI_PROGRAM__THUMB_LENGHT;
            this.ˋॱ = true;
        }
        return ˊ();
    }

    @CheckResult
    @NonNull
    public T ˏ(@NonNull ze<?> zeVar) {
        if (this.ʼॱ) {
            return ˎ().ˏ((ze) zeVar);
        }
        if (ॱ(zeVar.ॱ, 2)) {
            this.ˊ = zeVar.ˊ;
        }
        if (ॱ(zeVar.ॱ, 262144)) {
            this.ʽॱ = zeVar.ʽॱ;
        }
        if (ॱ(zeVar.ॱ, 1048576)) {
            this.ˋˊ = zeVar.ˋˊ;
        }
        if (ॱ(zeVar.ॱ, 4)) {
            this.ˏ = zeVar.ˏ;
        }
        if (ॱ(zeVar.ॱ, 8)) {
            this.ˋ = zeVar.ˋ;
        }
        if (ॱ(zeVar.ॱ, 16)) {
            this.ˎ = zeVar.ˎ;
            this.ॱॱ = 0;
            this.ॱ &= -33;
        }
        if (ॱ(zeVar.ॱ, 32)) {
            this.ॱॱ = zeVar.ॱॱ;
            this.ˎ = null;
            this.ॱ &= -17;
        }
        if (ॱ(zeVar.ॱ, 64)) {
            this.ᐝ = zeVar.ᐝ;
            this.ʼ = 0;
            this.ॱ &= -129;
        }
        if (ॱ(zeVar.ॱ, (int) DnsConfig.MAX_CACHE_ENTRIES)) {
            this.ʼ = zeVar.ʼ;
            this.ᐝ = null;
            this.ॱ &= -65;
        }
        if (ॱ(zeVar.ॱ, 256)) {
            this.ʽ = zeVar.ʽ;
        }
        if (ॱ(zeVar.ॱ, (int) WXMediaMessage.TITLE_LENGTH_LIMIT)) {
            this.ˏॱ = zeVar.ˏॱ;
            this.ʻ = zeVar.ʻ;
        }
        if (ॱ(zeVar.ॱ, (int) WXMediaMessage.DESCRIPTION_LENGTH_LIMIT)) {
            this.ॱˊ = zeVar.ॱˊ;
        }
        if (ॱ(zeVar.ॱ, 4096)) {
            this.ॱᐝ = zeVar.ॱᐝ;
        }
        if (ॱ(zeVar.ॱ, 8192)) {
            this.ͺ = zeVar.ͺ;
            this.ᐝॱ = 0;
            this.ॱ &= -16385;
        }
        if (ॱ(zeVar.ॱ, 16384)) {
            this.ᐝॱ = zeVar.ᐝॱ;
            this.ͺ = null;
            this.ॱ &= -8193;
        }
        if (ॱ(zeVar.ॱ, 32768)) {
            this.ʿ = zeVar.ʿ;
        }
        if (ॱ(zeVar.ॱ, (int) WXMediaMessage.THUMB_LENGTH_LIMIT)) {
            this.ˊॱ = zeVar.ˊॱ;
        }
        if (ॱ(zeVar.ॱ, (int) WXMediaMessage.MINI_PROGRAM__THUMB_LENGHT)) {
            this.ˋॱ = zeVar.ˋॱ;
        }
        if (ॱ(zeVar.ॱ, 2048)) {
            this.ॱˋ.putAll(zeVar.ॱˋ);
            this.ʾ = zeVar.ʾ;
        }
        if (ॱ(zeVar.ॱ, 524288)) {
            this.ˈ = zeVar.ˈ;
        }
        if (!this.ˊॱ) {
            this.ॱˋ.clear();
            this.ॱ &= -2049;
            this.ˋॱ = false;
            this.ॱ &= -131073;
            this.ʾ = true;
        }
        this.ॱ |= zeVar.ॱ;
        this.ॱˎ.ˋ(zeVar.ॱˎ);
        return ˊ();
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof ze)) {
            return false;
        }
        ze zeVar = (ze) obj;
        if (Float.compare(zeVar.ˊ, this.ˊ) == 0 && this.ॱॱ == zeVar.ॱॱ && aau.ॱ(this.ˎ, zeVar.ˎ) && this.ʼ == zeVar.ʼ && aau.ॱ(this.ᐝ, zeVar.ᐝ) && this.ᐝॱ == zeVar.ᐝॱ && aau.ॱ(this.ͺ, zeVar.ͺ) && this.ʽ == zeVar.ʽ && this.ʻ == zeVar.ʻ && this.ˏॱ == zeVar.ˏॱ && this.ˋॱ == zeVar.ˋॱ && this.ˊॱ == zeVar.ˊॱ && this.ʽॱ == zeVar.ʽॱ && this.ˈ == zeVar.ˈ && this.ˏ.equals(zeVar.ˏ) && this.ˋ == zeVar.ˋ && this.ॱˎ.equals(zeVar.ॱˎ) && this.ॱˋ.equals(zeVar.ॱˋ) && this.ॱᐝ.equals(zeVar.ॱᐝ) && aau.ॱ(this.ॱˊ, zeVar.ॱˊ) && aau.ॱ(this.ʿ, zeVar.ʿ)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return aau.ˊ(this.ʿ, aau.ˊ(this.ॱˊ, aau.ˊ(this.ॱᐝ, aau.ˊ(this.ॱˋ, aau.ˊ(this.ॱˎ, aau.ˊ(this.ˋ, aau.ˊ(this.ˏ, aau.ˋ(this.ˈ, aau.ˋ(this.ʽॱ, aau.ˋ(this.ˊॱ, aau.ˋ(this.ˋॱ, aau.ˏ(this.ˏॱ, aau.ˏ(this.ʻ, aau.ˋ(this.ʽ, aau.ˊ(this.ͺ, aau.ˏ(this.ᐝॱ, aau.ˊ(this.ᐝ, aau.ˏ(this.ʼ, aau.ˊ(this.ˎ, aau.ˏ(this.ॱॱ, aau.ˊ(this.ˊ)))))))))))))))))))));
    }

    @NonNull
    public T ˋॱ() {
        this.ʻॱ = true;
        return ˏ();
    }

    @NonNull
    public T ˏॱ() {
        if (!this.ʻॱ || this.ʼॱ) {
            this.ʼॱ = true;
            return ˋॱ();
        }
        throw new IllegalStateException("You cannot auto lock an already locked options object, try clone() first");
    }

    @NonNull
    private T ˊ() {
        if (!this.ʻॱ) {
            return ˏ();
        }
        throw new IllegalStateException("You cannot modify locked T, consider clone()");
    }

    @NonNull
    public final Map<Class<?>, si<?>> ˊॱ() {
        return this.ॱˋ;
    }

    public final boolean ᐝॱ() {
        return this.ˋॱ;
    }

    @NonNull
    public final sc ʻॱ() {
        return this.ॱˎ;
    }

    @NonNull
    public final Class<?> ॱᐝ() {
        return this.ॱᐝ;
    }

    @NonNull
    public final tf ॱˋ() {
        return this.ˏ;
    }

    @Nullable
    public final Drawable ॱˎ() {
        return this.ˎ;
    }

    public final int ʾ() {
        return this.ॱॱ;
    }

    public final int ʼॱ() {
        return this.ʼ;
    }

    @Nullable
    public final Drawable ʽॱ() {
        return this.ᐝ;
    }

    public final int ˈ() {
        return this.ᐝॱ;
    }

    @Nullable
    public final Drawable ʿ() {
        return this.ͺ;
    }

    @Nullable
    public final Theme ˉ() {
        return this.ʿ;
    }

    public final boolean ˊᐝ() {
        return this.ʽ;
    }

    @NonNull
    public final sa ˋˊ() {
        return this.ॱˊ;
    }

    public final boolean ˊˋ() {
        return ˊ(8);
    }

    @NonNull
    public final rl ˊˊ() {
        return this.ˋ;
    }

    public final int ˎˎ() {
        return this.ˏॱ;
    }

    public final boolean ˌ() {
        return aau.ˊ(this.ˏॱ, this.ʻ);
    }

    public final int ˋᐝ() {
        return this.ʻ;
    }

    public final float ˋˋ() {
        return this.ˊ;
    }

    boolean ˍ() {
        return this.ʾ;
    }

    private boolean ˊ(int i) {
        return ॱ(this.ॱ, i);
    }

    public final boolean ˎˏ() {
        return this.ʽॱ;
    }

    public final boolean ˏˏ() {
        return this.ˋˊ;
    }

    public final boolean ͺॱ() {
        return this.ˈ;
    }

    private T ˏ() {
        return this;
    }
}
